# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Ivan Tham <pickfire@riseup.net>
pkgname=xf86-input-wacom
pkgver=0.39.0
pkgrel=1
pkgdesc="X.org Wacom tablet input driver"
url="https://github.com/linuxwacom/xf86-input-wacom"
arch="all"
license="GPL-2.0-or-later"
makedepends="xorg-server-dev libxext-dev libxi-dev libxrandr-dev libxinerama-dev
	eudev-dev util-macros libpciaccess-dev"
checkdepends="bash findutils"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/linuxwacom/xf86-input-wacom/releases/download/xf86-input-wacom-$pkgver/xf86-input-wacom-$pkgver.tar.bz2"

build() {
	./configure --prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm -rf "$pkgdir"/usr/lib/systemd
}

sha512sums="9ad92c86c4ba3587d68e2107057c89dfe8628c0a2ec882f5a424ab4983c18ff6048489d7f6d3a8de87403744f74de1982de25327fc955bb5c21346a242e0aaa3  xf86-input-wacom-0.39.0.tar.bz2"
